package com.zg.common.core.dao.indiv.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zg.common.core.dao.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

/**
* @author zg
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class IndivSpace extends BaseEntity {

    /**
    * 租户id
    */
    private Long tenantId;
    /**
    * 空间名称
    */
    private String name;
    /**
    * 容量
    */
    private Long capacity;
    /**
     * 类型：0表单，1文件
     */
    private Integer dataType;
    /**
     * 表单id
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS, jdbcType = JdbcType.BIGINT)
    private Long formId;
    /**
     * 支持的文件类型，多个以,隔开
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS, jdbcType = JdbcType.VARCHAR)
    private String fileType;
    /**
     * 文件最大限制
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS, jdbcType = JdbcType.INTEGER)
    private Integer fileMaxSize;
}
